package com.shangxian.giveithome.code;



public enum ActivityCode implements Code {
    USER_NOT_AUTH(false, 30002, "您无权查看此信息"),
    DELETE_ERROR(false, 500, "删除失败,请稍后重试"),
    ACTIVITY_ERROR(false, 500, "活动未开始"),
    USER_NOT_MAIL_AUTH(false, 30003, "您无权查看此信息");
    private boolean success;

    private Integer code;

    private String message;

    ActivityCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
